home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pvm34b3.zip / pvm34b3 / pvm3 / libfpvm / pvmftrecv.m4 < prev    next >
Text File  |  1997-07-22  |  393b  |  20 lines

  1.  
  2. /* $Id: pvmftrecv.m4,v 1.2 1996/10/04 15:27:44 pvmsrc Exp $ */
  3.  
  4. #include <sys/types.h>
  5. #include <sys/time.h>
  6. #include "pvm3.h"
  7. #include "pvm_consts.h"
  8.  
  9. void
  10. FUNCTION(pvmftrecv) ARGS(`tid, msgtag, sec, usec, info')
  11. int *tid, *msgtag, *sec, *usec, *info;
  12. {
  13.     struct timeval t;
  14.  
  15.     t.tv_sec = *sec;
  16.     t.tv_usec = *usec;
  17.     *info = pvm_trecv(*tid, *msgtag, (*sec == -1 ? (struct timeval *)0 : &t));
  18. }
  19.  
  20.